package Task2;

public class taidi extends dog{
    public taidi() {
    }

    public taidi(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println("一只叫"+getName()+"的"+getAge()+"的泰迪，在吃东西。");
    }
}
